package com.hiray.restcache.api.res

import com.google.gson.annotations.SerializedName

data class LoginRequest constructor(
    var username: String,
    var password: String,
    var deviceid: String = "xxxxxxxxxyyyyyyyyyyzzz"
) {

    @SerializedName("os_version")
    var androidVersion: String = "202006101018"

    @SerializedName("versionname")
    var appVersionName: String = "4.0.0"

    @SerializedName("wifi")
    var wifiName: String = "tplink-ssid"

    @SerializedName("model")
    var deviceModel: String = "xiaomi-note-8"

    val get_token = 1
}


data class LoginResponseBody(
    var token: String,
    @SerializedName("userid")
    var userId: String,
    @SerializedName("username")
    var userName: String,
    @SerializedName("xqlevel")
    var level: String,
    var avatar: String,
    var phone: String,
    @SerializedName("bind")
    var bindInfo: BindInfo

) {


    @SerializedName("gold_z")
    var diamondNumber: String = ""

    @SerializedName("gold_d")
    var energy: String = ""
}

data class BindInfo(
    @SerializedName("alipay")
    var isAliBind: Boolean,
    @SerializedName("weixinpay")
    var isWeiXinBind: Boolean,
    @SerializedName("weixinpay_nickname")
    var weixinNickname: String,
    @SerializedName("alipay_account")
    var aliAccountName: String,
    @SerializedName("alipay_username")
    var aliRealName: String,
    @SerializedName("pay_passwd")
    var hasSetPaypassword: Boolean
)


